import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
public class TxHelper {
    public final static String QUOTE_MARKET = "\"";
    public static String quoteMarket(String content) {
        return QUOTE_MARKET + content + QUOTE_MARKET;
    }
    public static StringBuilder truncEnding(StringBuilder content, int number) {
        return content.delete(content.length() - number, content.length());
    }

    public static String readTxt(String fileName) throws IOException {
        BufferedReader reader = new BufferedReader(new FileReader(fileName));
        StringBuilder sb = new StringBuilder();
        String line = reader.readLine();

        while(line!=null) {
            sb.append(line);
            line = reader.readLine();
        }
        reader.close();
        return sb.toString();
    }
}
